import { INCREMENT, DECREMENT } from "../countAnt/index";
export const incrementAction = (data) => ({ type: INCREMENT, data });
export const decrementAction = (data) => ({ type: DECREMENT, data });
export const thunkIncrementAction = (data, time) => {
  return (dispatch) => {
    setTimeout(() => dispatch(incrementAction(data)), time);
  };
};
